<?php

namespace App\Http\Controllers\Main;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

use App\Model\About;
use App\Model\News;

class AboutController extends Controller
{
    //
    public function index($id) {
        $data = About::whereId($id)->first();
        $list = News::select('id','title')->where('recomm',1)->where('status',1)->orderBy('create_time','desc')->get();
        return view('main.about',compact('data','list'));
    }

    public function boss() {
        return view('main.boss');
    }
}
